Page({

  data: {
    loadImages: [
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1589000305616&di=d41e5172d3287ee83f00a7aef95c7d50&imgtype=0&src=http%3A%2F%2Fbpic.588ku.com%2Felement_origin_min_pic%2F16%2F10%2F27%2F8f751bb65494c10cb1378282edde7599.jpg',
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1589000305616&di=594134d63154cd57a42e20eafadfe92f&imgtype=0&src=http%3A%2F%2Fimg.sccnn.com%2Fbimg%2F338%2F42014.jpg',
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1589000305615&di=de32d28f5bc863cf0734e5d682bbe5f8&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Ff68767820f03933cdc091417d3afb41510c6058210eae-UKPVDi_fw658',
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1589000305615&di=5f6aeb914010e1abce1cec4a5d68bea2&imgtype=0&src=http%3A%2F%2Fpic.51yuansu.com%2Fpic3%2Fcover%2F03%2F03%2F83%2F5af5600060d79_610.jpg',
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1589000305614&di=630c3d1fba964106b8fab526f49537bf&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fdfdda5b8a5498379b2d27230e6941531cf84be1f5c50-k4w9vK_fw658',
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1589000305613&di=277d4492b6b6e2a1baabb13ee6e0bff7&imgtype=0&src=http%3A%2F%2Fbpic.588ku.com%2Felement_origin_min_pic%2F17%2F08%2F14%2Fb5bd5e3ef2a1c578ad1c4a79b591544c.jpg',
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1589000305613&di=c5ba52e61dc89858a8bd4089dc3302d4&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201805%2F29%2F20180529030220_htjiq.thumb.700_0.jpg',
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1589000376485&di=9a2f1c6ce84728ede8080bbc550f2c81&imgtype=0&src=http%3A%2F%2Fbpic.588ku.com%2Felement_origin_min_pic%2F17%2F03%2F02%2F3fe7242c9207e2464c0643e7b763aea4.jpg'
    ]
  },

  onLoad() {
    wx.downloadFile({
      // 示例 url，并非真实存在
      url: 'https://litecoder-1255585317.cos.ap-guangzhou.myqcloud.com/litecoder_v2.0/a.pptx',
      success: function (res) {
        const filePath = res.tempFilePath
        wx.openDocument({
          filePath: filePath,
          success: function (res) {
            console.log('打开文档成功')
          }
        })
      }
    })
  },

})